home *** CD-ROM | disk | FTP | other *** search
/ TeX 1995 July / TeX CD-ROM July 1995 (Disc 1)(Walnut Creek)(1995).ISO / tex-k / tex-k-archive.past / 1994.11.gz / 1994.11 / 000147_blair@olympia.gps.caltech.edu_Wed Nov 23 03:37:37 1994.msg < prev    next >
Internet Message Format  |  1994-11-30  |  2KB

  1. Received: from olympia.gps.caltech.edu by cs.umb.edu with SMTP id AA29856
  2.   (5.65c/IDA-1.4.4 for <tex-k@cs.umb.edu>); Wed, 23 Nov 1994 14:37:40 -0500
  3. Received: (from blair@localhost) by olympia.gps.caltech.edu (8.6.9/8.6.9) id LAA01325 for tex-k@cs.umb.edu; Wed, 23 Nov 1994 11:37:37 -0800
  4. Date: Wed, 23 Nov 1994 11:37:37 -0800
  5. From: Blair Zajac <blair@olympia.gps.caltech.edu>
  6. Message-Id: <199411231937.LAA01325@olympia.gps.caltech.edu>
  7. To: tex-k@cs.umb.edu
  8. Subject: Linking Xdvi with libdps on Solaris
  9. Content-Length: 1107
  10.  
  11. I just read a posting by Casper Dik, the one who knows all, about linking
  12. against the DPS library (libdps) on Solaris.  The problem is that Sun
  13. compiles its DPS library using their own compilers, and the resulting
  14. library needs the isinf() function, which isn't supplied in any system
  15. library.  This function only comes with the SparcCompilers.  However,
  16. here is a solution to this problem.
  17.  
  18. 5.3) Why do I get isinf undefined when linking with libdps?
  19.  
  20.     That's a bug in libdps.  Sun compiles and links its software
  21.     with its own compilers.  The isinf() function is shipped with
  22.     the SunPRO compilers, but not defined in any Solaris 2.x library.
  23.  
  24.     A workaround exists, and consists of adding the following to
  25.     your program:
  26.  
  27.     #include <ieeefp.h>
  28.  
  29.     int isinf(double x) { return !finite(x) && x==x; }
  30.  
  31. I don't know of a specific test for the Sun's compilers, so there's not
  32. an easy way to decide if the compiler being used would supply this
  33. function.  We could use instead a test for gcc.  Or maybe just have
  34. any compilation of xdvi on a Solaris box with DPS compile this code.
  35.  
  36. Blair